package com.yztc.orangeentertainment.ui.main.subscribefragment.sublablist;

import android.content.Context;

import com.yztc.orangeentertainment.adapter.LabListAdapter;
import com.yztc.orangeentertainment.base.IModle;
import com.yztc.orangeentertainment.base.IPresenter;
import com.yztc.orangeentertainment.base.IView;
import com.yztc.orangeentertainment.bean.LabListBean.ListBean;
import com.yztc.orangeentertainment.ui.main.subscribefragment.starlist.OnLoadStarListListener;

import java.util.List;
import java.util.Map;

import rx.Subscriber;

/**
 * Created by My on 2016/10/7.
 */
public class LabListContract {
    public interface View extends IView{
        //发送到adapter
        public void sendToAdapter(LabListAdapter adapter);
        public void onLoadLabListSuccess(List<ListBean> list);
        public void onLoadSearchStarSuccess(List<ListBean> list);
        //加载数据失败
        public void onLoadLabListFail(String msg);
    }
    public interface Modle extends IModle{
        //得到list
        public void getLabListAll(String type, Map<String, String> params, OnLoadLabListListener loadStarListListener, Context context);
        public void getSearchStar( String type, Map<String, String> params,Context context,OnLoadLabListListener loadStarListListener);
        //获得数据库
        public void getLabListFromDb(Subscriber<List<ListBean>> subscriber);
    }
    public interface Presenter extends IPresenter {
        //从网络获取数据
        public void getLabListFromNet(boolean flag,Map<String, String> params, Context context);
        public void  getLabListFromDb();
    }
}
